﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CardLogistics.Web.Components;
using System.Text;


namespace CardLogistics.Web.MainPage.Purchase.Contract_PayInfo
{
    public partial class PayInfoDetailedRpt : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string checkNo = Request.QueryString["CheckNo"];//凭证号

            StringBuilder sbStr = new StringBuilder();
            sbStr.Append(" SELECT * FROM v_purchase_contract_payinfo WHERE 1=1 and IsSubmit=5");

            if (checkNo.Trim().Length > 0)
                sbStr.Append(" and CheckNo like '%" + checkNo.Trim().ToUpper() + "%' ");//凭证号

            sbStr.Append(" Order by CheckNo desc,PayDate desc");
            OracleXMLReportData.GenNodeXmlData(this, sbStr.ToString(), true);
        }
    }
}